GXUnlockShape
You can use the GXUnlockShape function to allow QuickDraw GX to relocate, compress, or unload a shape that has been locked.
void GXUnlockShape(gxShape target);
target
- A reference to the shape to unlock.
DESCRIPTION
TheGXUnlockShape
function releases a previously locked shape for relocation or
other movement.To directly edit a shape's geometry, call
GXLockShape
followed byGXGetShapeStructure
. After editing, callGXUnlockShape
followed
byGXChangedShape
. Once you callGXUnlockShape
, the shape's geometry
may be relocated and a pointer returned byGXGetShapeStructure
may no
longer be valid.SPECIAL CONSIDERATIONS
To avoid fragmenting the QuickDraw GX heap, call the GXUnlockShape function as soon as possible after callingGXLockShape
.ERRORS, WARNINGS, AND NOTICES
Errors shape_is_nil Notices (debugging version) shape_not_locked SEE ALSO
TheGXLockShape
function is described in the previous section. TheGXGetShapeStructure
andGXChangedShape
functions are described in the following two sections.The
GXDisposeShape
function is described on page 2-55.